<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ezcomp="http://java.sun.com/jsf/composite/ezcomp">
    <body>
        <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                        template="./../templates/principalTemplate.xhtml">

            <ui:define name="content">
                <h:form>
                    <p:panel header="Eliminar Consumidor">
                        <h:panelGrid columns="3">
                            <p:outputLabel value="Consumidor" for="slcConsumidor" />
                            <p:selectOneMenu id="slcConsumidor" >
                                <f:selectItem itemLabel="Consumidor 1" itemValue="1" />
                                <f:selectItem itemLabel="Consumidor 2" itemValue="1" />
                                <f:selectItem itemLabel="Consumidor 3" itemValue="1" />
                            </p:selectOneMenu>
                            <p:message for="slcConsumidor" />
                            <h:panelGroup />
                            <h:panelGroup>
                                <p:commandButton id="btnEliminar" value="Eliminar" type="button" onclick="confEliminar.show();" />
                                &nbsp;
                                <p:commandButton id="btnCancelar" value="Cancelar" ajax="false" />
                            </h:panelGroup>
                            <h:panelGroup />
                        </h:panelGrid>
                        
                        <p:confirmDialog message="¿Está seguro de eliminar al consumidor?" header="Eliminar usuario" 
                                         widgetVar="confEliminar" severity="info">
                            <p:commandButton value="Aceptar" oncomplete="confEliminar.hide();" />
                            <p:commandButton value="Cancelar" onclick="confEliminar.hide();" />
                        </p:confirmDialog>
                    </p:panel>
                </h:form>
            </ui:define>

        </ui:composition>
    </body>
</html>
